// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.rd2.annotation.RoleData2;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * ShopInfo
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "shop_info", autoResultMap = true)
@Schema(title = "店铺")
@RoleData2(groupId = 12, funcKey = "ShopInfo")
public class ShopInfo implements Serializable {

  /**
   * 所属店铺授权
   */
  @TableField(value = "`parent_shop_authorization`")
  @JoinField(ShopAuthorization.class)
  @Schema(title = "所属店铺授权")
  private Long parentShopAuthorization;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 名称
   */
  @TableField(value = "`shop_name`")
  @Schema(title = "名称")
  private String shopName;

  /**
   * 编码
   */
  @TableField(value = "`shop_code`")
  @Schema(title = "编码")
  private String shopCode;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 国家
   */
  @TableField(value = "`country`")
  @Schema(title = "国家")
  private String country;

  /**
   * 亚马逊店铺id
   */
  @TableField(value = "`seller_id`")
  @Schema(title = "亚马逊店铺id")
  private String sellerId;

  /**
   * 金蝶店铺
   */
  @TableField(value = "`jindie_shop`")
  @JoinField(BosAssistantdataDetail.class)
  @Schema(title = "金蝶店铺")
  private Long jindieShop;

  /**
   * 金蝶店铺店铺编码
   */
  @TableField(value = "`jindie_shop_code`")
  @Schema(title = "金蝶店铺店铺编码")
  private String jindieShopCode;

  /**
   * 授权状态
   */
  @TableField(value = "`seller_auth_status`")
  @Schema(title = "授权状态")
  private String sellerAuthStatus;

  /**
   * 更新授权时间
   */
  @TableField(value = "`update_auth_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新授权时间")
  private java.util.Date updateAuthTime;

  /**
   * 授权异常时间
   */
  @TableField(value = "`error_auth_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "授权异常时间")
  private java.util.Date errorAuthTime;

  /**
   * 授权日期
   */
  @TableField(value = "`auth_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "授权日期")
  private java.util.Date authTime;

  /**
   * 刷新令牌
   */
  @TableField(value = "`refresh_token`")
  @Schema(title = "刷新令牌")
  private String refreshToken;

  /**
   * 平台
   */
  @TableField(value = "`platform`")
  @Schema(title = "平台")
  private String platform;

  /**
   * 站点简称
   */
  @TableField(value = "`region`")
  @Schema(title = "站点简称")
  private String region;

  /**
   * 站点id
   */
  @TableField(value = "`mid`")
  @Schema(title = "站点id")
  private Long mid;

  /**
   * 市场id
   */
  @TableField(value = "`marketplace_id`")
  @Schema(title = "市场id")
  private String marketplaceId;

  /**
   * 是否授权广告
   */
  @TableField(value = "`has_ads_setting`")
  @Schema(title = "是否授权广告")
  private Boolean hasAdsSetting;

  /**
   * 亚马逊端点
   */
  @TableField(value = "`endpoint`")
  @Schema(title = "亚马逊端点")
  private String endpoint;

  /**
   * 领星ID
   */
  @TableField(value = "`lx_sid`")
  @Schema(title = "领星ID")
  private Long lxSid;

  /**
   * AWS 区域
   */
  @TableField(value = "`aws_region`")
  @Schema(title = "AWS 区域")
  private String awsRegion;

  /**
   * 市场名
   */
  @TableField(value = "`marketplace_name`")
  @Schema(title = "市场名")
  private String marketplaceName;

  /**
   * TikTok刷新token
   */
  @TableField(value = "`tiktok_refresh_token`")
  @Schema(title = "TikTok刷新token")
  private String tiktokRefreshToken;

  /**
   * 金蝶部门
   */
  @TableField(value = "`dep`")
  @Schema(title = "金蝶部门")
  private String dep;

  /**
   * 金蝶部门编码
   */
  @TableField(value = "`depcode`")
  @Schema(title = "金蝶部门编码")
  private String depcode;
}
